@charset "UTF-8";
@import './size.less';
.home-page{
    min-width:@page-min-width;
    // 顶部区域
    .page-top{
        height: 34px;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background: #f2f2f2;
        .top-con{
            width: @page-content-size;
            margin: 0 auto;
            &:before{
                height: 0;
                content: '';
                clear: both;
                overflow: hidden;
                display: block;
            }
            .top-left{
               float: left;
               .top-index{
                    display: block;
                    font: 12px/32px "微软雅黑";
                    color: #999;
                    float: left;
                    margin-right: 20px;
                    i{
                        display: block;
                        width: 16px;
                        height: 14px;
                        float: left;
                        background: url(../images/bg/bg.png) -784px -98px;
                        margin: 9px 7px 0 10px;
                    }
               }
               p{
                   font: 12px/32px "微软雅黑";
                   color: #999;
                   float: left;
                   margin-right: 20px;
                   span {
                       color: #e00b0b;
                   }
               }
            } 
            .top-right{
                float: right;
                position: relative;
                height: 32px;
                a{
                    height: 32px;
                    display: block;
                    font: 12px/32px "微软雅黑";
                    color: #999;
                    float: left;
                }
                .focus-on{
                    float: left;
                    height: 32px;
                    font: 12px/32px "微软雅黑";
                    color: #999;
                    .sharebx{
                        position: relative;
                        float: right;
                        i{
                            display: block;
                            width: 22px;
                            height: 22px;
                            margin: 5px 6px 0 0px;
                        }
                        .weibo{
                            background: url(../images/bg/bg.png) -64px 0 no-repeat;
                            cursor: pointer;
                        }
                        .weixin{
                            background: url(../images/bg/bg.png) -32px 0 no-repeat;
                            cursor: pointer;
                        } 
                        .tencent {
                            background: url(../images/bg/bg.png) 0 0 no-repeat;
                            cursor: pointer;
                        }
                    }      
                } 
            }
        }
    }
    // 导航栏
    .nav{
        width: 100%;
        background-color: #dd4545;
        .tab{
            margin:0 auto;
            display:flex;
            width:@page-content-size;
            .tab-item{
                color:#FFF;
                font-size:18px;
                line-height:40px;
                width:150px;
                height:40px;
                padding:5px;
                text-align:center;
                cursor:pointer;
                &:hover{
                    background-color:#F64400;
                    color: #FFF;
                }
            }
            .tab-item-active{
                background-color:#F64400; 
                color: #FFF;
            }
        }               
    }
    // 轮播图
    .swiper{
        margin: 20px auto;
        width:100%;
        .swiper-slide{
            width: @page-content-size;
            margin: 0 auto;
            display: block;
            img{
                width: 100%;
                height: 400px;
            }
        }
    }
}
// 排行榜
.section-brand,.info-list {
 margin:0 auto;
 width: @page-content-size;
}
@recommend-height:150px;
.recommend-brand {
    width: 100%;
    height: @recommend-height;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 10px;
    a{
        display: block;
        width: ~"calc(20% - 16px)";
        height: @recommend-height;
        float: left;
        margin: 0px 8px;
        transition: 0.2s;
        &:hover{
          margin-top: -3px;
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }
        img{
            width:100%;
            height: 100%;
        }
    }
}
// 消息排行（30条）
.section-card{
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
  .card {
    display: block;
    border: 1px solid #EEE;
    width: ~"calc(18% - 2px)";
    min-width: 200px;
    min-height: 200px;
    cursor: pointer;
    margin-bottom: 40px;
    border-radius: 0px;
    overflow: hidden;
    &:hover{
        margin-top: -3px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
    img{
        display: block;
        width: 100%;
        height: 150px;
        border-radius: 10px;
    }
    .tag-list{
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        align-items: flex-start;
        .tag{
            margin: 3px;
            padding: 3px 5px;
            border:1px solid #bdd;
            color: #666;
            border-radius: 10px;
            font-size: 12px;
            &:hover{
                background-color: #5588FF;
                color: #FFF;
            }
        }
    }
    .card-footer{
        width: ~"calc(100% - 20px)";
        padding: 0 10px;
        .avatar{
            float: left;
            margin-top: 5px;
            img{
                width: 40px;
                height: 40px;
                border-radius: 50%;
            }
          span{
            display: block;
            text-align: center;
            line-height: 20px;
            font-size: 14px;
          }
        }
        .card-text{
            float: right;
            min-width: 100px;
            width: ~"calc(100% - 60px)";
            margin-left:10px;
            span{
                text-align: left;
                display: block;
                font-size: 12px;
                color: #666;
                display: block;
                line-height: 20px;
                strong{
                    color: #333;
                }
            }
        }
    }
  }
}